#pragma once

class CWorkThread
{
public:
	CWorkThread(void);
	virtual ~CWorkThread(void);

public:
	virtual void	StartThread(void);
	virtual void	SuspendWorkThread(void);
	virtual void	ResumeWorkThread(void);
	void	ExitThread(void);
	bool	AttachWindow(HWND hWnd);	
	HWND	m_hMainWnd;
protected:
	virtual	UINT ThreadFunction(void);
	static	DWORD CALLBACK BogusThreadfunc(LPVOID lpparam);

protected:
	bool	m_bQuit;
	HANDLE  m_hThread;
	

	void ClearThread(void);
};
